<p:dialog xmlns="http://www.w3.org/1999/xhtml"
      	  xmlns:h="http://java.sun.com/jsf/html"
      	  xmlns:f="http://java.sun.com/jsf/core"
      	  xmlns:ui="http://java.sun.com/jsf/facelets"
      	  xmlns:p="http://primefaces.org/ui"
      	  modal="true"  resizable="true" 
		  widgetVar="dialogManterPais" id="idDialogManterPais" closable="true"
		  appendToBody="true"> 	
  	
<h:form prependId="false">
<h:panelGroup id="pgDialogManterPais">

 	<p:messages id="messagesDialog" autoUpdate="true" closable="true" showDetail="true"/> 
    	<h:panelGrid  columns="2" style="margin-top:20px; margin-right:10%;">  
            <h:outputLabel value="Código do País" styleClass="outputLabel"/>  
            <h:outputLabel value="Nome do País*" styleClass="outputLabel"/>             
            <p:inputText value="#{paisBean.paisSave.idPais}" styleClass="inputId" disabled="true" />  
  			<p:inputText value="#{paisBean.paisSave.descricao}" styleClass="inputDescricao" required="true" requiredMessage="Informe o nome do País!"/>  
        </h:panelGrid>  
        <h:panelGrid  columns="2" style="margin-right:10%;">  
            <h:outputLabel value="Sigla" styleClass="outputLabel"/>  
            <h:outputLabel value="DDI" styleClass="outputLabel"/>             
            <p:inputText value="#{paisBean.paisSave.sigla}" styleClass="inputId"/>  
  			<p:inputText value="#{paisBean.paisSave.ddi}" styleClass="inputId"/>  
        </h:panelGrid>  

    <p:commandButton value="Salvar" actionListener="#{paisBean.savePais}" update="pgDialogManterPais" process="@this pgDialogManterPais" style="margin-right:20px; margin-left:10px;" /> 
	<p:commandButton value="Cancelar"  onclick="dialogManterPais.hide()" style="margin-right:20px;" />

 </h:panelGroup>
 </h:form>	
</p:dialog>
